/**
 *  PCFValidator - Portable Content Format validator
 *  Copyright (C) 2009 CEPHIS <http://cephis.uab.cat>
 *
 *  Developed by:
 *    Aitor Rodriguez Alsina <aitor.rodriguez@uab.cat>, CEPHIS
 *
 *  This file is part of PCFmodel, a free software library.
 *
 *  If you have no applicable agreement with CEPHIS, this software
 *  is licensed to you, and you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 3 of the License.
 *
 *  If you have a applicable agreement with CEPHIS, the terms of that
 *  agreement prevail.
 *
 *  PCFModel is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.cephis.pcfjtools.validator;

/**
 *
 * @author Tots
 */
public class Main
{

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args)
    {
        System.out.println("PCFValidator Copyright (C) 2010  Aitor Rodriguez");
        if (args.length != 1) {
            showUsage();
            return;
        }
        PCFValidator pcfValidator = new PCFValidator();
        if (pcfValidator.validates(args[0])) {
            System.out.println("Document OK");
        }
    }

    private static void showUsage()
    {
        System.out.println("Usage: PCFValidator pcf_file");
    }
}
